package com.lww.springcloudapi.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "User对象", description = "用户实体")
public class TabHallUser implements Serializable {

    @ApiModelProperty(value = "用户id")
    @TableId("userid")
    private int id; //用户id

    @ApiModelProperty(value = "手机号码")
    @TableField("pnumber")
    private String pnumber; //用户名

    @ApiModelProperty(value = "用户密码")
    @TableField("userpassword")
    private String userpassword;//用户密码
}
